//
//  LiveCollectionViewCell.m
//  斗鸡TV
//
//  Created by admin on 2017/2/10.
//  Copyright © 2017年 admin. All rights reserved.
//

#import "LiveCollectionViewCell.h"
#import "UIImageView+AFNetworking.h"

@implementation LiveCollectionViewCell
 UIImageView * img;

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
//                self.backgroundColor = [UIColor orangeColor];
        
        [self initView];
    }
    return self;
    
}


-(void)initView
{
    img = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width,self.frame.size.height)];
    img.backgroundColor = [UIColor lightGrayColor];
    img.layer.cornerRadius = self.frame.size.width/2;
    img.contentMode = UIViewContentModeScaleAspectFill;
    img.clipsToBounds = YES;
    [self.contentView addSubview:img];
    

}


-(void)setCellData:(SubHomeModel *)subModel
{
    [img setImageWithURL:[NSURL URLWithString:subModel.bigpic] placeholderImage:[UIImage imageNamed:@""]];

}
@end
